{{include file = "layouts/header.tpl"}}
<div class="container mt20">
	<div class="wrapper">
{{include file = "layouts/crumb.tpl"}}
		<div id="texebox" class="mt15">
			{{if $postelement != null and $postelement != "" }} 
			<a href="{{$postelement->post_link}}" id="addcart">buy</a>
			<div class="title titlet-bt">
				<h1>{{$postelement->post_title}}</h1>
			</div>
			<div class="post-meta-top mt15">
				<span class="posts">{{$postelement->username}}</span> <span class=" time">{{$postelement->post_date}}</span>
				<span class="preview" id="clicknumspan"><font>{{$postelement->click_count}}views</font></span>
			</div>
			<div class="fmt mt20">
				{{$postelement->post_content}}
			</div>
			<div class="texttag">
				{{foreach $posttags as $tag}}
						<a href='{{$tag.url}}'>{{$tag.name}}</a>
				{{/foreach}}
<!-- 				 <a href="#">世界杯</a> <a href="#">俄罗斯</a> -->
			</div>
			<div class="share mt20">
                <div class="jiathis_style_32x32">
                    <!-- AddThis Button BEGIN -->
                    <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
                        <a class="addthis_button_facebook"></a>
                        <a class="addthis_button_twitter"></a>
                        <a class="addthis_button_google_plusone_share"></a>
                        <a class="addthis_button_pinterest_share"></a>
                        <a class="addthis_button_email"></a>
                        <a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a>
                    </div>
                    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
                    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5343ad843f8ba58f"></script>
                    <!-- AddThis Button END -->

                    <!--
                    <span class="zan"><a  href="javascript:void(0)" id="zanyixiabtn">like <font title="zan">you do it<b id="agreecount">{{$postelement->agree_count}}</b></font></a></span>
                     -->



                </div>
			</div>
			<div class="page-n-p mt20">
				<div class="f_l text-prev">
					{{if $pre_post != null and $pre_post != "" }} 
						<span>up</span> <a href="{{$pre_post.url}}"><h3>{{$pre_post.name}}</h3></a>
					{{/if}}
				
				</div>
				<div class="f_r text-next">
					{{if $nxt_post != null and $nxt_post != "" }} 
						<span>next</span> <a href="{{$nxt_post.url}}"><h3>{{$nxt_post.name}}</h3></a>
					{{/if}}
				</div>
			</div>
			{{/if}}
			<div class="textcontent-ad mt20" id='postcontent'>
<!-- 				<img src="{{$smarty.const.WEBSITE_URL}}public/photo/726x30-AD.gif" /> -->
			</div>
			<div class="comments">
				<div class="title titlet-h mt15">Comments</div>
				<div class="commentslist mt15">

					<ul id="postcomentsul">
                        <li>
                            <script type="text/javascript">
                                /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
                                var disqus_shortname = 'babyspeedy'; // required: replace example with your forum shortname

                                /* * * DON'T EDIT BELOW THIS LINE * * */
                                (function () {
                                    var s = document.createElement('script'); s.async = true;
                                    s.type = 'text/javascript';
                                    s.src = '//' + disqus_shortname + '.disqus.com/count.js';
                                    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
                                }());
                            </script>

                        </li>
						<li>
                            <div id="disqus_thread"></div>
                            <script type="text/javascript">
                                /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
                                var disqus_shortname = 'babyspeedy'; // required: replace example with your forum shortname

                                /* * * DON'T EDIT BELOW THIS LINE * * */
                                (function() {
                                    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                                    dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
                                    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
                                })();
                            </script>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div class="rightsub">

			<div class="subad mt15" id="rightContent">
<!-- 				<a href="#"><img src="{{$smarty.const.WEBSITE_URL}}public/photo/300x300-AD.gif" /></a>   <a href="/game" title="ad">	<img src="http://www.ibo123.net//public/photo/game.gif"></a>-->
			</div>
            {{include file = "layouts/hottag.tpl"}}
            {{include file = "layouts/email_sub.tpl"}}
		</div>
	</div>
 
</div>
<script language="JavaScript">
         var weburl = '{{$smarty.const.WEBSITE_URL}}';
         var parms = {'id':{{$postid}}};
 </script>
{{include file = "layouts/footer.tpl"}}
